#ifndef MY_CHAMMER_H
#define MY_CHAMMER_H



#include <mzfc_inc.h>

#include "CGame.h"
#include "CScript.h"



#define HAMMER_PIKOPIKO	0
#define HAMMER_BRONZE	1
#define HAMMER_SILVER	2
#define HAMMER_GOLDEN	3
#define HAMMER_TYPE_COUNT	4



struct HAMMER_INFO
{
	WCHAR		wszName[32];
	DWORD		dwHammerLevel;
	DWORD		dwDamage;
	DWORD		dwDamageToSelf;

};



class CHammer
{
public:
	CHammer()	{ m_dwHitIndex = UN_DEFINE; m_bQuickHammer = false; m_dwActionTick = 0; };

	DWORD			m_dwHammerID;
	HAMMER_INFO*	m_pHammerInfo;
	DWORD			m_dwHitIndex;
	bool			m_bQuickHammer;
	CScript			m_spr[9];

	DWORD			m_dwActionTick;

	void	ChangeHammer( DWORD dwHammerID, bool bQuickHammer );
	void	Hit( DWORD dwIndex );
	void	InitHammer( DWORD dwHammerID = HAMMER_PIKOPIKO, bool bQuickHammer = false );
	bool	IsHitting();
	void	RenderHammer();
	void	RenderHammerInfo();
	void	RunLogic();
	void	SetPosition( int nIndex );

	CScript	m_sprHammerInfo;
	CScript m_sprHammerPower;

protected:

};



#endif